#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void swapStrings(char **s1,char **s2){
    char *temp=*s1;
    *s1=*s2;
    *s2=temp;
    
}
int main() {

    char *s1, *s2;
    char buffer1[101], buffer2[101];
    fgets(buffer1, sizeof(buffer1), stdin);
    buffer1[strcspn(buffer1, "\n")] = 0; // 移除换行符
    fgets(buffer2, sizeof(buffer2), stdin);
    buffer2[strcspn(buffer2, "\n")] = 0; // 移除换行符
    s1 = buffer1;
    s2 = buffer2;

    swapStrings(&s1, &s2);

    printf("s1 = %s\n", s1);
    printf("s2 = %s\n", s2);

    return 0;
}